﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="EditProfile.aspx.cs" Inherits="BEELab.EditProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server">
    <div id="wrap" class="clearfix">
        <h2 class="headline">Edit Profile</h2>
        <div class="sign-form">
            <asp:Label ID="lblUpdateMessage" runat="server" ForeColor="Red"></asp:Label>
            <div class="input-hold">

                <asp:Label ID="Label1" runat="server" CssClass="sign-label" AssociatedControlID="txtFirstName">First Name</asp:Label>
                <asp:TextBox CssClass="sign-input" runat="server" ID="txtFirstName" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" Text="*"
                    ErrorMessage="* First Name is required." ForeColor="Red" />
                <asp:RegularExpressionValidator ID="revtxtFirstName" runat="server" ControlToValidate="txtFirstName" Text="*" ErrorMessage="* Name allow only . _ alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">

                <asp:Label ID="Label5" runat="server" CssClass="sign-label" AssociatedControlID="txtLastName">Last Name</asp:Label>
                <asp:TextBox CssClass="sign-input" runat="server" ID="txtLastName" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtLastName" Text="*"
                    ErrorMessage="* Last Name is required." ForeColor="Red" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtLastName" Text="*" ErrorMessage="* Name allow only . _ alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">
                <asp:Label ID="Label2" runat="server" CssClass="sign-label" AssociatedControlID="txtUniversity">University</asp:Label>
                <asp:TextBox class="sign-input" runat="server" ID="txtUniversity" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUniversity"
                    ForeColor="Red" ErrorMessage="* Universty is required." Text="*" />
                <asp:RegularExpressionValidator ID="revtxtUniversity" runat="server" ControlToValidate="txtUniversity" Text="*" ErrorMessage="* University allow only . _ alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">
                <asp:Label ID="Label3" runat="server" CssClass="sign-label1" AssociatedControlID="txtEmail"> E-Mail Address<br /><span>will be used as username</span></asp:Label>
                <asp:TextBox runat="server" CssClass="sign-input" ID="txtEmail" AutoPostBack="true" OnTextChanged="txtEmail_TextChanged" TextMode="Email" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail"
                    Text="*" ForeColor="Red" ErrorMessage="* E-Mail Address is required." />
                <asp:RegularExpressionValidator ID="revtxtEmail" runat="server" ControlToValidate="txtEmail" CssClass="field-validation-error" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Email Format {username@domail.com}"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">

                <asp:Label ID="Label4" runat="server" CssClass="sign-label1" AssociatedControlID="txtConfirmEmail">E-Mail Address<br />
                    <span>Repeat</span></asp:Label>
                <asp:TextBox runat="server" CssClass="sign-input" ID="txtConfirmEmail" TextMode="Email" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtConfirmEmail"
                    Text="*" ForeColor="Red" ErrorMessage="* E-Mail Address is required." />
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtEmail" ControlToValidate="txtConfirmEmail"
                    Text="*" ForeColor="Red" Display="Dynamic" ErrorMessage="* E-Mail Addresses don't match." />
            </div>

            <div class="input-hold">
                <label class="sign-label">Password</label>
                <p>-<a href="ChangePassword.aspx">Change Password</a>-</p>
            </div>

            <div class="input-hold">
                <asp:Button ID="btnSubmit" CssClass="sign-submit" Text="Submit" runat="server" OnClick="btnSubmit_Click" />
            </div>
        </div>
        <div class="error">
            <asp:ValidationSummary ID="vsEditProfile" runat="server" />
            <asp:Label runat="server" ID="lblEmailExisting" Visible="false">
                * Email already registered in the system.
            </asp:Label>
        </div>
    </div>
</asp:Content>
